package com.lanhu.designpattern.proxy.dynamicproxy.cglibproxy;

import net.sf.cglib.core.DebuggingClassWriter;

/**
 * author:zhangzg
 * date:2020/11/11 1:34
 */
public class Test {
    public static void main(String[] args) {
        System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY, "E://cglib_proxy");
        Tenant tenant = (Tenant)new HouseAgent().getInstance(Tenant.class);
        tenant.findWarehouse();
        System.out.println(tenant);

    }
}
